
import {createStore} from 'vuex'
import actions from './actions.js'
import getters from './getters.js'
import mutations from './mutations'
import list from '@/component/tabBar.js'

// import product from './product'



export default createStore({
    state: {
        token: '', //连接Token
        userInfo: {}, //用户信息
        timerIdent: false, //全局1s定时器，只在全局开启一个，所有需要定时执行的任务监听该值即可，无需额外开启
        moduleActions: [], //操作权限模块列表
		townList:[],
		tabList:list
    },
    mutations: {
        ...mutations
    },
    getters: {
        ...getters
    },
    actions: {
        ...actions
    }
})


